rpcd-mod-luci: Fix parsing of DUID-LLT's in duid2ea
authorNiels Widger <[email protected]>
Thu, 25 Feb 2021 20:31:00 +0000 (15:31 -0500)
committerJo-Philipp Wich <[email protected]>
Mon, 1 Mar 2021 07:55:46 +0000 (08:55 +0100)
commitbf34ccdfc0a7406b15797498ce0d33177c6f9e58
tree6b420da72f19a06b1be7ffd4184e0a71919a8eab
parent9ece8c182dd1d71ba3768dab358d036f60f6d355
rpcd-mod-luci: Fix parsing of DUID-LLT's in duid2ea

Fix parsing of DUID-LLT's in duid2ea.  Unlike DUID-LL's, DUID-LLT's have a 32-bit time field between the hardware type and link-layer address fields, see RFC 3315 Sections 9.2 and 9.4:

https://tools.ietf.org/html/rfc3315#section-9.2
https://tools.ietf.org/html/rfc3315#section-9.4

therefore, the link-layer address starts at offset 16 instead of 8.

Signed-off-by: Niels Widger <[email protected]>
(cherry picked from commit 8920a2bf71e544fada3de824126a5c8f1c596b63)
libs/rpcd-mod-luci/src/luci.c